package com.bizzan.bitrade.entity;

import lombok.Data;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * @author Hevin  E-mail:bizzanhevin@gmail.com
 * @date 2020年12月29日
 */
@Data
public class LoginByTfn {

    @NotBlank(message = "{LoginByTfn.account.null}")
    private String account;

    @NotBlank(message = "{LoginByTfn.password.null}")
    //@Length(min = 6, max = 20, message = "{LoginByEmail.password.length}")
    private String password;

    @NotBlank(message = "{LoginByTfn.username.null}")
//    @Length(min = 3, max = 20, message = "{LoginByEmail.username.length}")
    private String username;

    /**
     * 类型：0：手机，1：邮箱
     */
   // @NotBlank(message = "{LoginByTfn.type.null}")
    private String type;
    //@NotBlank(message =  "{LoginByEmail.country.null}")
    private String country;

    private String promotion;

    //@NotBlank(message = "{LoginByEmail.code.null}")
    private String code;

    //超级合伙人标识 0 普通  1 超级合伙人
    private String superPartner ;

}
